<?php
declare(strict_types=1);

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class YikaoCollege extends Model
{
    protected $table = 'yikao_college';
    protected $primaryKey = 'id';
    public $timestamps = false;

    protected $fillable = [
        'ad_level',
        'address',
        'admissions',
        'ai_status',
        'applied_grade',
        'area',
        'bdold_name',
        'belong',
        'central',
        'city_id',
        'city_name',
        'code_enroll',
        'college_employment',
        'colleges_level',
        'content',
        'coop_money',
        'county_id',
        'create_date',
        'data_code',
        'department',
        'doctor_arr',
        'doublehigh',
        'dual_class',
        'dual_class_name',
        'dualclass',
        'e_app',
        'e_pc',
        'email',
        'eol_rank',
        'f211',
        'f985',
        'fenxiao',
        'gb_show',
        'gbh_num',
        'gbh_url',
        'is_ads',
        'is_ads2',
        'is_evaluation',
        'is_fenxiao',
        'is_international_undergraduate',
        'is_logo',
        'is_recruitment',
        'is_seal',
        'is_sell',
        'is_show_xcxcode',
        'is_special_project',
        'is_upgrade',
        'is_video',
        'is_yikao',
        'level',
        'level_name',
        'master_arr',
        'miniprogram',
        'motto',
        'name',
        'nature_name',
        'num_academician',
        'num_doctor',
        'num_doctor2',
        'num_lab',
        'num_library',
        'num_master',
        'num_master2',
        'num_subject',
        'old_name',
        'phone',
        'postcode',
        'pro_type',
        'pro_type_min',
        'province_id',
        'province_name',
        'province_score_min',
        'province_score_year',
        'province_single'
    ];

    protected $casts = [
        'doctor_arr' => 'array',
        'dualclass' => 'array',
        'fenxiao' => 'array',
        'master_arr' => 'array',
        'pro_type' => 'array',
        'pro_type_min' => 'array',
        'province_score_min' => 'array',
        'province_single' => 'array'
    ];

    public function yikao_college_c()
    {
        return $this->belongsTo(YikaoCollegeC::class, 'id', 'yikao_college_id');
    }
}
